package com.fz.controller.project;

import com.fz.common.ResponseEntity;
import com.fz.beans.IdBeans;
import com.fz.beans.PageBeans;
import com.fz.dto.project.projectPart.ProjectPartAdd;
import com.fz.dto.project.projectPart.ProjectPartQuery;
import com.fz.dto.project.projectPart.ProjectPartUpd;
import com.fz.service.project.ProjectPartService;
import com.fz.vo.project.projectPart.ProjectPartVo;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * @author :xmj
 * @date :2021/3/25 下午4:06
 */
@RestController
@Api(tags = "项目标段信息")
@RequestMapping("/projectPart")
@SuppressWarnings("unchecked")
public class ProjectPartController {

    @Resource
    private ProjectPartService projectPartService;

//    @GetMapping("/findProjectPartList")
//    @ApiOperation(value = "查询项目标段信息分页列表")
//    public ResponseEntity<ProjectPartVo> findProjectPartList(PageBeans pageBeans, ProjectPartQuery ProjectPartQuery) throws Exception {
//        return projectPartService.findProjectPartList(pageBeans.getPageNum(), pageBeans.getPageSize(), ProjectPartQuery);
//    }
//
//    @GetMapping("/selectProjectPartList")
//    @ApiOperation(value = "查询项目标段信息列表")
//    public ResponseEntity<ProjectPartVo> selectProjectPartsList(ProjectPartQuery ProjectPartQuery) {
//        return projectPartService.selectProjectPartsList(ProjectPartQuery);
//    }
//
//    @PostMapping("/saveProjectPart")
//    @ApiOperation(value = "新增项目标段信息")
//    public ResponseEntity<ProjectPartVo> saveProjectPart(@RequestBody ProjectPartAdd ProjectPartAdd) throws Exception {
//        return projectPartService.saveProjectPart(ProjectPartAdd);
//    }
//
//    @PostMapping("/updateProjectPart")
//    @ApiOperation(value = "修改项目标段信息")
//    public ResponseEntity<ProjectPartVo> updateProjectPart(@RequestBody ProjectPartUpd ProjectPartUpd) throws Exception {
//        return projectPartService.updateProjectPart(ProjectPartUpd);
//    }
//
//    @PostMapping("/delProjectPart")
//    @ApiOperation(value = "删除项目标段信息")
//    public ResponseEntity<ProjectPartVo> delProjectPart(@RequestBody IdBeans idBeans) throws Exception {
//        return projectPartService.delProjectPart(idBeans.getIds());
//    }
}
